-- GENERATED SPELL FOR [Daggerspine Siren] --


function spell0_2371(pUnit, Event) --@Enveloping Winds,n/a--
pUnit:FullCastSpellOnTarget(6728,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2371', 12000, 1)
end

function spell1_2371(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2371', 3000, 1)
end

function spell2_2371(pUnit, Event) --@Shadow Word: Pain,n/a--
pUnit:FullCastSpellOnTarget(992,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2371', 18000, 1)
end

function Sorts_2371(pUnit, Event)
local choix_sorts_2371 = math.random(0, 2)
if choix_sorts_2371 == 0 then
pUnit:RegisterEvent('spell0_2371', 1, 1)
end
if choix_sorts_2371 == 1 then
pUnit:RegisterEvent('spell1_2371', 1, 1)
end
if choix_sorts_2371 == 2 then
pUnit:RegisterEvent('spell2_2371', 1, 1)
end
end

function mob2371_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2371', math.random(1500, 3000), 1)
end

function mob2371_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2371_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2371_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2371, 1, 'mob2371_Action')
RegisterUnitEvent(2371, 2, 'mob2371_Leave')
RegisterUnitEvent(2371, 3, 'mob2371_Kill')
RegisterUnitEvent(2371, 4, 'mob2371_Die')
